package net.sky.oa.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *维修类型表
 *FloMendtype.@author hond
 */
@Entity
@Table(name = "FLO_MENDTYPE")//维修类型表
public class FloMendtype implements Serializable {

	private static final long serialVersionUID = 5673991033245515351L;
	
	// Fields
	private Long id;
	private String name;//类型名称
	private String desn;//类型描述

	// Constructors

	/** default constructor */
	public FloMendtype() {
	}

	/** minimal constructor */
	public FloMendtype(Long id) {
		this.id = id;
	}
	
	@Id
	@SequenceGenerator(name="SQ_FLOMENDTYPE_ID",sequenceName="SQ_FLOMENDTYPE_ID",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="SQ_FLOMENDTYPE_ID")
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	
	@Column(name = "NAME", length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DESN", length = 100)
	public String getDesn() {
		return this.desn;
	}

	public void setDesn(String desn) {
		this.desn = desn;
	}

}